package javaVersion.learn.streamProcess;

import javaVersion.pojo.Pro3_Order;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @program: myFlink
 * @description: 通过POJO自定义数据源
 * @author: WincoMa
 * @create: 2020-07-17 17:11
 **/
public class Pro3_customSource {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment senv = StreamExecutionEnvironment.getExecutionEnvironment();
        DataStreamSource<Pro3_Order> customDataStream = senv.addSource(new Pro3_MyRichSourceFunction());
        customDataStream.print();
        senv.execute();

    }
}
